import Vue from 'vue'
import Component from 'vue-class-component'
import store from '@/store'
import { getModule } from 'vuex-module-decorators'
import User from '@/store/modules/user'
const user = getModule(User, store)

@Component
export default class RootMixin extends Vue {
  // 用户信息
  get userInfo() {
    return user.userInfo
  }

  // 获取当前行政区等级
  public getAreaLevel(areaCode: string) {
    
  }

  // 用户默认头像
  public avatarError(e: any) {
    e.target.src = require('@/assets/avatar.png')
  }
}

export * from './table'
export * from './auth'
export * from './app-mixin'
export * from './extends-import'
